package com.kt.dion.golf.data;

import java.util.ArrayList;

import com.kt.dion.golf.util.Log;
import com.kt.dion.golf.util.ResourceManager;

public class PlayerData extends Data
{
	private ArrayList arrPlayer = new ArrayList();

	public void addPlayer(Player player)
	{
		arrPlayer.add(player);
	}

	public Player getPlayer(int i)
	{
		if (i < arrPlayer.size())
			return (Player) arrPlayer.get(i);
		return null;
	}

	public int getDataSize()
	{
		return arrPlayer.size();
	}

	public class Player
	{
		String code;
		String name;

		public String getCode()
		{
			return code;
		}

		public void setCode(String code)
		{
			this.code = code;
		}

		public String getName()
		{
			return name;
		}

		public void setName(String name)
		{
			this.name = name;
		}
	}

	public void dispose(boolean isDisposeOfPage)
	{
		arrPlayer.clear();
		arrPlayer = null;
	}

	public String toString()
	{
		return null;
	}
}
